package com.example.jiagoujiexiang.Service.impl;

import com.example.jiagoujiexiang.Mapper.commentDao;
import com.example.jiagoujiexiang.Service.adminService;
import com.example.jiagoujiexiang.Service.getLoveService;
import com.example.jiagoujiexiang.entity.User;
import com.example.jiagoujiexiang.entity.subscribe;
import com.example.jiagoujiexiang.Mapper.getLoveDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class getLoveServiceimpl implements getLoveService {

    private final getLoveDao lovedao;
    @Autowired
    public getLoveServiceimpl(getLoveDao lovedao) {
        this.lovedao = lovedao;
    }
    public int love(int userid, int petid) {
        return lovedao.addLoveDao(userid,petid);
    }
}
